import List from '@ohos.util.List'

export class BaseData<T> {
  data: T
  errorCode: number
  errorMsg: string
}

export class ArticlePage {
  curPage: number
  datas: List<ArticleItem>
  offset: number
  over: Boolean
  pageCount: number
  size: number
  total: number
}

export class ArticleItem {
  adminAdd: Boolean
  apkLink: String
  audit: number
  author: String
  canEdit: Boolean
  chapterId: number
  chapterName: String
  collect: Boolean
  courseId: number
  desc: String
  descMd: String
  envelopePic: String
  fresh: Boolean
  host: String
  id: number
  isAdminAdd: Boolean
  link: String
  niceDate: String
  niceShareDate: String
  origin: String
  prefix: String
  projectLink: String
  publishTime: number
  realSuperChapterId: number
  selfVisible: number
  shareDate: number
  shareUser: String
  superChapterId: number
  superChapterName: String
  tags: List<String>
  title: String
  userId: number
  visible: number
  zan: number
}

export class Banner {
  desc: String
  id: number
  imagePath: String
  isVisible: number
  order: number
  title: String
  type: number
  url: String
}